package com.xiaoyy.app.extend.gateway.controller;

import com.xiaoyy.app.extend.integration.TzZzdwebIntegration;
import com.xiaoyy.core.common.vo.AppResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/other/zzdweb")
@Api(tags = "天正浙政钉应用相关接口")
public class TzZzdwebController {
    @Autowired
    private TzZzdwebIntegration tzZzdwebIntegration;

    @GetMapping(value = "/api/appAccess/getAccess_token", produces = "application/json;charset=UTF-8")
    @ApiOperation(value = "天正浙政钉应用鉴权接口", notes = "天正浙政钉应用鉴权接口")
    public AppResponse getAccessToken(){
        return AppResponse.successData(tzZzdwebIntegration.getAccessToken());
    }
}
